package org.jeecg.modules.storage.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 包材入库单
 * @Author: jeecg-boot
 * @Date:   2024-08-05
 * @Version: V1.0
 */
@Data
@ApiModel(value="package_storagePage对象", description="包材入库单")
public class PackageStorageVo {

	/**主键*/
	@ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
	@ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
	@ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
	@ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**供货商单位*/
	@Excel(name = "供货商单位", width = 15)
	@ApiModelProperty(value = "供货商单位")
    private String supplierId;
	/**类型*/
	@Excel(name = "类型", width = 15)
	@ApiModelProperty(value = "类型")
	@Dict(dicCode = "rk_type")
    private String storageType;
	/**批次号*/
	@Excel(name = "批次号", width = 15)
	@ApiModelProperty(value = "批次号")
    private String lotNumber;
	/**进场日期*/
	@Excel(name = "进场日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "进场日期")
    private Date enteringDate;
	/**宝洁供应商编码*/
	@Excel(name = "宝洁供应商编码", width = 15)
	@ApiModelProperty(value = "宝洁供应商编码")
    private String bjSupplierCode;
	/**宝洁采购订单号*/
	@Excel(name = "宝洁采购订单号", width = 15)
	@ApiModelProperty(value = "宝洁采购订单号")
    private String bjProcurementCode;
	/**宝洁供应商*/
	@Excel(name = "宝洁供应商", width = 15)
	@ApiModelProperty(value = "宝洁供应商")
    private String bjSupplierName;
	/**状态*/
	@Excel(name = "状态", width = 15)
	@ApiModelProperty(value = "状态")
    private String status;
	/**编号*/
	@Excel(name = "编号", width = 15)
	@ApiModelProperty(value = "编号")
    private String code;


//	/**主键*/
//	@TableId(type = IdType.ASSIGN_ID)
//	@ApiModelProperty(value = "主键")
//	private String id;
//	/**创建人*/
//	@ApiModelProperty(value = "创建人")
//	private String createBy;
//	/**创建日期*/
//	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
//	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
//	@ApiModelProperty(value = "创建日期")
//	private Date createTime;
//	/**更新人*/
//	@ApiModelProperty(value = "更新人")
//	private String updateBy;
//	/**更新日期*/
//	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
//	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
//	@ApiModelProperty(value = "更新日期")
//	private Date updateTime;
//	/**所属部门*/
//	@ApiModelProperty(value = "所属部门")
//	private String sysOrgCode;

	private String detailId;


	/**排产单号*/
	@Excel(name = "排产单号", width = 15)
	@ApiModelProperty(value = "排产单号")
	private String schedulingCode;
	/**包材id*/
	@Excel(name = "包材id", width = 15)
	@ApiModelProperty(value = "包材id")
	private String materialId;

	@ApiModelProperty(value = "物料名称")
	private String materialName;

	@ApiModelProperty(value = "物料编号")
	private String materialCode;

	@ApiModelProperty(value = "计量单位")
	@Dict(dicCode = "ji_unit")
	private String meUnit;

	@ApiModelProperty(value = "规格")
	private String noneSpec;


	/**供应商要求名字*/
	@Excel(name = "供应商要求名字", width = 15)
	@ApiModelProperty(value = "供应商要求名字")
	private String materialSupplierName;
	/**库位*/
	@Excel(name = "库位", width = 15)
	@ApiModelProperty(value = "库位")
	private String erpLocationId;
	/**数量*/
	@Excel(name = "数量", width = 15)
	@ApiModelProperty(value = "数量")
	private java.math.BigDecimal num;
	/**备注*/
	@Excel(name = "备注", width = 15)
	@ApiModelProperty(value = "备注")
	private String remark;
	/**生产日期*/
	@Excel(name = "生产日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "生产日期")
	private Date manufactureDate;
	/**限用日期*/
	@Excel(name = "限用日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "限用日期")
	private Date expiryDate;
	/**主表id*/
	@ApiModelProperty(value = "主表id")
	private String packageStorageId;

	@ApiModelProperty(value = "行项目")
	private String rowNum;

	@ApiModelProperty(value = "质检状态")
	@Dict(dicCode = "zj_status")
	private String qcStatus;

	@ApiModelProperty(value = "仓库编号")
	private String erpLocationCode;

	@ApiModelProperty(value = "采购订单编号")
	private String procurementCode;

	@ApiModelProperty(value = "采购订单明细")
	private String procurementDetailId;

	@ApiModelProperty(value = "仓库编码")
	private String erpWarehouseCode;


//	@ExcelCollection(name="包材入库单物料")
//	@ApiModelProperty(value = "包材入库单物料")
//	private List<PackageStorageMaterial> packageStorageMaterialList;

}
